package org.cloudnote.service;

import org.cloudnote.bean.Note;
import org.cloudnote.bean.NoteBook;
import org.cloudnote.bean.Share;

import java.util.List;

public interface NoteService {
    public List<Note> getByBookId(String noteBookId);
    public Note getByNoteId(String noteId);

    public void save(Note note);

    public void update(Note note);

    public void recycle(String noteId);

    public Share getShareByNoteId(String noteId);
    public void addShare(Share share);

    public List<Share> getByTittle(String noteTittle);

    public Share getById(String shareId);

    public int moveNote(String noteBookId,String noteId);
}
